<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
  <title>Title</title>
  <base href="<%=basePath%>"/>
  <%@include file="/WEB-INF/views/common/common.jsp" %>
  <script type="text/javascript" src="static/js/model/autho.js"></script>
</head>
<body>
<%--datagrid--%>
<table id="authoDatagrid"></table>
<%--用户数据表格工具栏--%>
<div id="authoDatagridToolbar">
  <shiro:hasPermission name="autho:startProcessInstance">
    <a data-cmd="authoSystem" href="javascript:;" class="easyui-linkbutton "
       data-options="iconCls:'icon-add',plain:true">申请系统</a>
  </shiro:hasPermission>
  <a data-cmd="queryScode" href="javascript:;" class="easyui-linkbutton " data-options="iconCls:'icon-add',plain:true">查询申请码</a>

  <form style="padding: 10px" id="searchForm">
    关键字：
    <input id="searchQ" name="q" class="easyui-textbox" style="width:100px">
    <a data-cmd="search" href="javascript:;" class="easyui-linkbutton c6" data-options="iconCls:'icon-search'">搜索系统</a>
    <a data-cmd="searchAdvance" href="javascript:;" class="easyui-linkbutton c6" data-options="iconCls:'icon-search'">高级搜索</a>
  </form>
</div>

<%--授权管理申请单--%>
<div id="authoDialog">
  <form id="authoDialogForm">
    <table>
      <tr>
        <td>申请系统名称</td>
        <td>
          <input id="name" name="name" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请系统版本</td>
        <td>
          <input id="version" name="version" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请码</td>
        <td>
          <input id="applycode" name="applycode" required="true" class="easyui-textbox" style="width:200px">
        </td>
      </tr>
      <tr>
        <td>申请人</td>
        <td>
          <input id="applicant" name="applicant" required="true" class="easyui-textbox" style="width:200px">
        </td>
      </tr>
      <tr>
        <td>申请原因</td>
        <td>
          <input id="applyrea" name="applyrea" class="easyui-textbox" style="width:200px">
        </td>
      </tr>
      <tr>
        <td>授权行政</td>
        <td>
          <input id="administration" name="administration" required="true" class="easyui-textbox" style="width:200px">
        </td>
      </tr>
      <tr>
        <td>申请日期</td>
        <td>
          <input id="applydate" name="applydate" class="easyui-datetimebox" style="width:200px">
        </td>
        <td>(请选择日期)</td>
      </tr>
      <tr>
        <td>授权截至日期</td>
        <td>
          <input id="deadline" name="deadline" required="true" class="easyui-datetimebox" style="width:200px">
        </td>
        <td>(请选择日期)</td>
      </tr>

    </table>
  </form>
</div>

<%--申请单模态框工具栏--%>
<div id="authoSystemDialogToolbar">
  <a data-cmd="authoSystemCommit" href="javascript:;" class="easyui-linkbutton"
     data-options="iconCls:'icon-save',plain:true">申请系统</a>
  <a data-cmd="authoSystemCancel" href="javascript:;" class="easyui-linkbutton"
     data-options="iconCls:'icon-cancel',plain:true">取消</a>
</div>

<%--查询申请单模态框--%>
<div id="querySystemDialog">
  <form id="querySystemForm">
    <table>
      <tr>
        <td>申请系统申请码</td>
        <td>
          <input name="queryByApplycode" class="easyui-textbox" required="true" style="width:200px">
        </td>
      </tr>
    </table>
  </form>
</div>

<%--查询申请单模态框工具栏--%>
<div id="querySystemDialogToolbar">
  <a data-cmd="queryCommit" href="javascript:;" class="easyui-linkbutton c4"
     data-options="iconCls:'icon-save',plain:true">查询</a>
  <a data-cmd="queryAgain" href="javascript:;" class="easyui-linkbutton c4"
     data-options="iconCls:'icon-save',plain:true">系统再次申请</a>
  <a data-cmd="queryCancel" href="javascript:;" class="easyui-linkbutton c5"
     data-options="iconCls:'icon-cancel',plain:true">取消</a>
</div>

<%--高级查询模态框--%>
<div id="authoSearchDialog">
  <form id="authoSearchForm">
    <table>
      <tr>
        <td>系统标识</td>
        <td><input name="identification" class="easyui-textbox" style="width:200px"></td>
      </tr>
      <tr>
        <td>名字</td>
        <td><input name="name" class="easyui-textbox" style="width:200px"></td>
      </tr>
      <tr>
        <td>编码</td>
        <td><input name="scode" class="easyui-textbox" style="width:200px"></td>
      </tr>
      <tr>
        <td>版本号</td>
        <td><input name="version" class="easyui-textbox" style="width:200px"></td>
      </tr>
    </table>
  </form>
</div>
<%--高级查询模态框的工具栏--%>
<div id="authosSearchDialogToolbar">
  <a data-cmd="searchCommit" href="javascript:;" class="easyui-linkbutton c4"
     data-options="iconCls:'icon-save',plain:true">提交</a>
  <a data-cmd="searchCancel" href="javascript:;" class="easyui-linkbutton c5"
     data-options="iconCls:'icon-cancel',plain:true">取消</a>
</div>

</body>
</html>
